<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>在职联考网上报名</title>
        <meta http-equiv="X-UA-Compatible" content="IE=7" />
        <link href="css/reset.css" rel="stylesheet" type="text/css" media="screen" />
        <link href="css/studentFrame.css" rel="stylesheet" type="text/css" media="screen" />
        <script type="text/javascript" src="script/jquery-1.4.1.js">
        </script>
        <script type="text/javascript" src="script/pngBgFix.js">
        </script>
        <script type="text/javascript" src="script/cookie.js">
        </script>
    </head>
    <body>
    <div id="container">
        <div id="shadowWrapper">
            <div id="topmenu">
                <div id="logo">
                </div>
                <span id="userInfo">欢迎您  <span></span> &nbsp; &nbsp;<a href="javascript:void(0);" id="btnLogoff">注销</a></span>
            </div>
            <div id="mainContent">
                <div id="header">
                </div>
                <div id="navigator">
                    <ul>
                        <li>
                            <a href="page/student/home.html" target="contentframe" id="current">首页</a>
                        </li>
                        <!--<li>
                            <a href="page/student/apply.html" target="contentframe">填写报名信息</a>
                        </li>-->
                        <li>
                            <a href="page/student/myinfo.html" target="contentframe">管理报名信息</a>
                        </li>
                        <li>
                            <a href="page/student/arrange.html" target="contentframe">查看考试安排</a>
                        </li>
                        <li>
                            <a href="#">查询考试成绩</a>
                        </li>
                        <li>
                            <a href="page/student/message.html" target="contentframe">发表留言</a>
                        </li>
                    </ul>
                </div>
                <div id="description">
                    <div class="underLine">
                    </div>
                </div>
                <div id="bodyInner">
                    <iframe id="contentframe" frameborder="no" border="0" scrolling="no" allowtransparency="yes" src="page/student/home.html" name="contentframe" onload="this.height=this.contentWindow.document.documentElement.scrollHeight<530?530:this.contentWindow.document.documentElement.scrollHeight;">
                    </iframe>
                </div>
                <div id="footer">
                </div>
            </div>
        </div>
        <div id="shadowBottom">
            <div id="shadowBottomFix">
            </div>
        </div>
    </div>
    </div>
</body>
<script type="text/javascript">
    function watchForResetFrameHeight(){
        var intendHeight = Math.max($('#contentframe').get(0).contentWindow.document.documentElement.scrollHeight, 530);
        if (intendHeight != $.frameHeight) {
            $('#contentframe').height(intendHeight);
            $.frameHeight = intendHeight;
        }
    }
    
    $(function(){
        if (Tr0j4n.Cookie.Get('userCode') == null) {
            window.location.href = 'login.html';
        }
        $('#userInfo span').text(Tr0j4n.Cookie.Get('userName'));
        setInterval('watchForResetFrameHeight()', 500);
    });
    $(window).load(function(){
        $('#navigator a').click(function(){
            $('#current').removeAttr('id');
            $(this).attr('id', 'current');
        });
        $('#btnLogoff').click(function(){
            if (confirm('确定要注销吗?')) {
				Tr0j4n.Cookie.Del('userName');
				Tr0j4n.Cookie.Del('userCode');
				Tr0j4n.Cookie.Del('userType');			
                window.location.href = 'login.html';
            }
        });
    });
</script>
</html>
